package com.example.myapplication.interceptors;

import okhttp3.Interceptor;
import okhttp3.Response;
import org.jetbrains.annotations.NotNull;

import java.io.IOException;

/**
 * @author sjh
 * @Description
 * @create 2022/3/7 17:09
 */
public class MyInterceptor implements Interceptor {

    public MyInterceptor() {
    }

    @NotNull
    @Override
    public Response intercept(@NotNull Chain chain) throws IOException {
        //前置处理
        Response response = chain.proceed(chain.request());
        //后置处理
        return response;
    }

}
